package com.ruoyi.laiwu.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;
import java.util.List;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 告警业务对象 lw_alarm
 *
 * @author ruoyi
 * @date 2024-03-08
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class LwAlarmBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 子ID
     */
    @NotNull(message = "子ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long subId;

    /**
     * 告警编号
     */
    @NotBlank(message = "告警编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String alarmNo;

    /**
     * 告警源名称
     */
    @NotBlank(message = "告警源名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String alarmSourceName;

    /**
     * 告警源类型
     */
    @NotNull(message = "告警源类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long alarmSourceType;

    /**
     * 告警源代码
     */
    @NotBlank(message = "告警源代码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String alarmSourceCode;

    /**
     * 告警级别
     */
    @NotBlank(message = "告警级别不能为空", groups = { AddGroup.class, EditGroup.class })
    private String alarmGrade;

    /**
     * 告警类型
     */
    @NotBlank(message = "告警类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String alarmType;

    /**
     * 告警类型名称
     */
    @NotBlank(message = "告警类型名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String alarmTypeName;

    /**
     * 时间戳
     */
    @NotNull(message = "时间戳不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long timestamp;

    /**
     * 机构ID
     */
    @NotNull(message = "机构ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long orgId;

    private List<LwAlarmFileBo> alarmFiles ;
    private LwAlarmExtendBo extend;
    private LwAlarmDetailBo alarmDetail;
    private LwAlarmPositionBo position;


}
